/** @format */

// Author 区区电脑
// Email 1573580882@qq.com
// Date 2021-06-27
// Copyright © 2021 gys. All rights reserved.

export default {
    // 注册过的组件
    registerComponent: state => state.pages.registerComponent,
    // 已经打开的页面 对象
    openedPages: state => state.pages.openedPages || [],
    // 当前页面组件名
    activePageComponentName: state => state.pages.activePageComponentName,
    // 全部菜单
    allMenus: state => state.permission.allMenus,
    // 正在刷新页面
    isReloading: state => state.pages.isReloading,
    // 侧边栏菜单
    sideMenus: state => state.layout.sideMenus || [],
    // 页面权限
    pagePermission: state => state.permission.pagePermission || [],
    // 页面权限路径集合
    pagePathPermission: state => state.permission.pagePathPermission || [],
    // 按钮权限(允许调用的接口或拥有的按钮)
    buttonPermission: state => state.permission.buttonPermission || [],
    // 角色权限(拥有的角色)
    rolePermission: state => state.permission.rolePermission || [],
    // 用户信息
    userInfo: state => state.user.userInfo || {},
    // 侧边栏折叠状态
    sidebarCollapsed: state => state.layout.sidebarCollapsed,
    // 全局信息
    globalMessageList: state => state.globalMessage.list || [],
    // 框架容器高度
    containerHeight: state => state.layout.containerHeight,
    // 布局类型
    layoutType: state => state.layout.layoutType,
};
